import { LAYOUT } from '@/router/constant'
import type { RouteRecordRaw } from 'vue-router'

const dashboardRoute: RouteRecordRaw = {
  path: '/',
  redirect: '/dashboard',
  component: LAYOUT,
  meta: {
    noAuth: true
  },
  children: [
    {
      path: '/dashboard',
      name: 'dashboard',
      meta: {
        title: '系统首页',
        noAuth: true
      },
      component: () => import(/* webpackChunkName: "dashboard" */ '@/views/dashboard.vue')
    }
  ]
}

export default dashboardRoute
